package com.lex.crossgate.admin.modules.sys.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 行政区划
 * </p>
 *
 * @author 李贝留斯
 * @since 2018-05-22
 */
@TableName("sys_area")
public class SysArea extends Model<SysArea>{

    private static final long serialVersionUID = 1L;

    /**
     * 区域id
     */
    @TableId("area_id")
    private String areaId;
    /**
     * 行政区划代码
     */
    @TableField("area_code")
    private String areaCode;
    /**
     * 父级id
     */
    @TableField("parent_code")
    private String parentCode;
    /**
     * 地区名称
     */
    private String name;
    /**
     * 层级
     */
    private Integer layer;
    /**
     * 排序号,1:省级,2:地市,3:区县
     */
    @TableField("order_num")
    private Integer orderNum;
    /**
     * 显示,1:显示,0:隐藏
     */
    private Integer status;
    /**
     * 备注
     */
    private String remark;
    /**
     * 创建时间
     */
    @TableField("gmt_create")
    private Date gmtCreate;
    /**
     * 修改时间
     */
    @TableField("gmt_modified")
    private Date gmtModified;

    public String getAreaId() {
        return areaId;
    }

    public void setAreaId(String areaId) {
        this.areaId = areaId;
    }

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getLayer() {
        return layer;
    }

    public void setLayer(Integer layer) {
        this.layer = layer;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    protected Serializable pkVal() {
        return this.areaId;
    }

    @Override
    public String toString() {
        return "Area{" +
                "areaId=" + areaId +
                ", areaCode=" + areaCode +
                ", parentCode=" + parentCode +
                ", name=" + name +
                ", layer=" + layer +
                ", orderNum=" + orderNum +
                ", status=" + status +
                ", remark=" + remark +
                ", gmtCreate=" + gmtCreate +
                ", gmtModified=" + gmtModified +
                "}";
    }
}